Skip to content

feat: replace instruments table with the new dynamic material table #1793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

martin-trajanovski
Copy link
Collaborator

@martin-trajanovski martin-trajanovski commented Mar 21, 2025

Description

Replaces the instruments table with the new dynamic material table component

Motivation

All the existing tables should be replaced by the new dynamic material table for better performance, flexibility and alignment.

Fixes:

Please provide a list of the fixes implemented in this PR

Changes:

Please provide a list of the changes implemented by this PR

  • Replaces the existing instruments table with the new dynamic material table for improved performance and flexibility.
  • Improves the handling of table settings, pagination, and sorting using the dynamic material table.

Tests included

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)

Documentation

  • swagger documentation updated [required]
  • official documentation updated [nice-to-have]

official documentation info

If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included

Backend version

  • Does it require a specific version of the backend
  • which version of the backend is required:

Summary by Sourcery

Replaces the instruments table with the new dynamic material table component, and refactors the proposal dashboard to use the new dynamic material table component.

Enhancements:

  • Replaces the existing instruments table with the new dynamic material table for improved performance and flexibility.
  • Refactors the proposal dashboard to use the new dynamic material table component.
  • Improves the handling of table settings, pagination, and sorting using the dynamic material table.

Summary by Sourcery

Replace the existing instruments table with a new dynamic material table component, improving performance, flexibility, and user experience

New Features:

  • Implement a new dynamic material table for instruments dashboard
  • Add support for advanced table settings, pagination, and sorting

Enhancements:

  • Refactor instruments dashboard to use dynamic material table
  • Improve table interaction with query parameter-based navigation
  • Enhance table configuration and user settings persistence

Tests:

  • Update unit tests to reflect new table implementation
  • Modify test cases for pagination and sorting interactions

@martin-trajanovski martin-trajanovski marked this pull request as ready for review April 22, 2025 11:46
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @martin-trajanovski - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider extracting the table configuration logic into a separate service or utility function to improve readability and maintainability.
  • The component now fetches data on every query parameter change; consider debouncing or throttling these requests to avoid excessive API calls.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟡 Complexity: 2 issues found
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant